//
//  WWDoctorDetailController.m
//  快医
//
//  Created by 张湾湾 on 16/7/7.
//
//

#import "WWDoctorDetailController.h"
#import "WWDoctorDetailCell.h"

@interface WWDoctorDetailController ()

@end

static NSString * identifier = @"cell1";
@implementation WWDoctorDetailController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.tableView.delegate = self;
    self.tableView.dataSource = self;
    
    self.tableView.rowHeight = 90;
    
    self.tableView.backgroundColor = XHRColorWithRGB(224, 225, 226);
    
    [self.tableView registerClass:[WWDoctorDetailCell class] forCellReuseIdentifier:identifier];
}


#pragma mark - Table view data source

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 5;
}

- (UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    //缓存池
    WWDoctorDetailCell * cell = [tableView dequeueReusableCellWithIdentifier:identifier];
    
    cell.textLabel.text = @"医生的简介";
    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
       return cell;
    
}

//- (instancetype)initWithStyle:(UITableViewStyle)style{
//    return [super initWithStyle:UITableViewStyleGrouped];
//}

@end
